<p>El siguiente listado muestra los recursos elija uno para editar los detalles de ese resurso.</p>


<? if (count($this->paginator)): ?>
<table class="listclass" width="100%" border="0" cellpadding="0" cellspacing="0">
    <thead>
      <tr>
            <th width="10%" align="left">ID</th>
            <th width="10%" align="left">Recurso</th>
            <th width="10%" align="left">Aplicacion</th>
      </tr>
    </thead>

    <tbody>
        <? $i=0; foreach ($this->paginator as $resource) : ?>
              <tr class=<?= ($i%2==0?'"even clickable"':'"odd clickable"') ?> 
              	onclick="document.location='<?php echo $this->url( array( 'controller'=>'role','action'=>'resourceEdit', 'roleId'=> $this->roleId, 'resourceId' => $resource['resource_id'] ), "default" )?>'">
                    <td valign="top"><?= $resource['resource_id']; ?></td>
                    <td valign="top"><?= $resource['name'] ?></td>
                    <td valign="top"><?= $resource['app_name']?></td>
              </tr>
        <? $i++; endforeach; ?>
    </tbody>
</table>
<?= $this->paginator ?>
<? endif; ?>
<p>
<?= $this->href( "role", "resourceEdit", "Crear un nuevo recurso", array( 'roleId'=> $this->roleId ) ) ?>
</p>
<p>
<? if ( empty( $this->roleId ) ) : ?>
    <?= $this->href( "role", "list", "Volver" ) ?>
<? else: ?>
    <?= $this->href( "role", "aclList", "Volver", array( 'roleId'=> $this->roleId ) ) ?>
<? endif; ?>
</p>

